package hutool.oshi;

import cn.hutool.system.oshi.CpuInfo;
import cn.hutool.system.oshi.OshiUtil;
import oshi.hardware.GlobalMemory;
import oshi.hardware.HWDiskStore;

import java.util.List;

public class OshiDemo {
    public static void main(String[] args) {
        CpuInfo cpuInfo = OshiUtil.getCpuInfo();
        System.out.println("cpuInfo = " + cpuInfo);
        GlobalMemory memory = OshiUtil.getMemory();
        System.out.println("memory = " + memory);
        List<HWDiskStore> diskStores = OshiUtil.getDiskStores();
        diskStores.forEach(d -> System.out.println("d = " + d));
    }
}
